package com.wmeimob.fastboot.jiubei.mapper;

import com.wmeimob.fastboot.core.orm.Mapper;
import com.wmeimob.fastboot.jiubei.entity.ShopGoods;
import com.wmeimob.fastboot.jiubei.dto.GoodsDTO;
import com.wmeimob.fastboot.jiubei.dto.ProportionShopGoodsDTO;
import com.wmeimob.fastboot.jiubei.dto.SetUpShopGoodsDTO;

import java.util.List;


/**
* ShopGoodsMapper.java
* http://www.wmeimob.com
* Copyright © 2018 wmeimob All Rights Reserved,version 1.0
* @author：wjt
* Fri Aug 28 00:08:28 CST 2020 Created
* 
*/ 
public interface ShopGoodsMapper extends Mapper<ShopGoods> {

	int updateGoodsProportion(SetUpShopGoodsDTO setUpGoods);

	int batchUpdateProportion(List<ProportionShopGoodsDTO> proportionGoodsList);

    int inventoryReduction(GoodsDTO goodsDto);

    int incrementSales(List<GoodsDTO> goodsDtos);

    int incrementStock(ShopGoods shopGoods);

    /**List<ShopGoods> select(ShopGoods shopGoods);

	ShopGoods selectByPrimaryKey(@Param("id") Object id);

	int insertSelective(ShopGoods shopGoods);

	int updateByPrimaryKeySelective(ShopGoods shopGoods);

	int deleteByPrimaryKey(@Param("id") Object id);

	int delete(ShopGoods shopGoods);*/
	
}